package com.erp.gather.mapper;

import com.erp.gather.domain.vo.ErpSellerStoreProductVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.gather.api.domain.ErpSellerStoreProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 卖家在线商品;参考AE-商品：发布产品信息（aliexpress.postproduct.redefining.postaeproduct）Mapper接口
 *
 * @author erp
 * @date 2023-03-28
 */
public interface ErpSellerStoreProductMapper extends BaseMapperPlus<ErpSellerStoreProductMapper, ErpSellerStoreProduct, ErpSellerStoreProductVo> {

//	@Override
//	@DataPermission({ @DataColumn(key = "userName", value = "create_by") })
//	<P extends IPage<ErpSellerStoreProduct>> P selectPage(P page,
//			@Param(Constants.WRAPPER) Wrapper<ErpSellerStoreProduct> queryWrapper);

//	Page<ErpSellerStoreProductVo> getPageLsit(@Param("page") Page<ErpSellerOrder> page , @Param("bo") ErpSellerStoreProductBo bo);

	String getCategoryEn(@Param("id") Long collectProductId);

	String getCategoryCN(@Param("id") Long collectProductId);

	ErpSellerStoreProduct selectByAeId(@Param("aeProductId") Long aeProductId);

    List<ErpSellerStoreProduct> selectPrimaryCategoryList(@Param("storeUserName")String storeUserName , @Param("aeProductIds") String aeProductIds,@Param("categoryId")Long categoryId);

    List<ErpSellerStoreProduct> selectStoreProductListByCategoryId(@Param("categoryId")Long categoryId, @Param("storeId")Long storeId);

	List<ErpSellerStoreProduct> queryProductByCycle(@Param("cycle") Integer cycle,@Param("storeId") List<Long> storeId);

    Long selectProductCountByStoreId(@Param("storeId") Long storeId);
}
